<template>
  <div class="container_detail">
    <div class="header">
      <p>经销商列表>经销商详情</p>
      <el-button class="link" type="primary">
        <router-link :to="{name:'distributorList',params: { pageIndex: currentPage }}" style="color: #fff;">返回</router-link>
      </el-button>
    </div>
    <div class="main">
      <div class="list">
        <div class="item">
          <div class="item-key">经销商编号:</div>
          <div class="item-value">2222  </div>
        </div>
         <div class="item">
          <div class="item-key">经销商类型:</div>
          <div class="item-value">2222  </div>
        </div>
         <div class="item">
          <div class="item-key">创建日期:</div>
          <div class="item-value">2222  </div>
        </div>
         <div class="item">
          <div class="item-key">实体店名:</div>
          <div class="item-value">2222  </div>
        </div>
        <div class="item">
          <div class="item-key">门店地址:</div>
          <div class="item-value">2222  </div>
        </div>
        <div class="item">
          <div class="item-key">店长姓名:</div>
          <div class="item-value">2222  </div>
        </div>
        <div class="item">
          <div class="item-key">手机号码:</div>
          <div class="item-value">2222  </div>
        </div>
        <div class="item">
          <div class="item-key">所属业务员:</div>
          <div class="item-value">2222  </div>
        </div>
        <div class="item">
          <div class="item-key">经销商账号:</div>
          <div class="item-value">2222  </div>
        </div>
        <div class="item">
          <div class="item-key">经销状态:</div>
          <div class="item-value">2222  </div>
        </div>
        <div class="item">
          <div class="item-key">资质状态:</div>
          <div class="item-value">2222  </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
let CONSTANT = require("../../constant/constant.js");
let common = require("../../common.js");

export default {
  data() {
    return {
      id: "",
      info: "",
      // 返回 导航页码
      currentPage: 1,
      dialogVisible: false,
      pictureUrl: "",
    };
  },
  mounted() {
    this.id = this.$router.currentRoute.query.id;
    this.currentPage = this.$router.currentRoute.query.pageIndex
      ? this.$router.currentRoute.query.pageIndex
      : 1;
    this.getDetail();
  },
  methods: {
    getDetail() {
      let url = CONSTANT.URL.LIST.WORDDETAIL;
      common.requestAjax(url, null, { id: this.id }, res => {
        this.info = res.data.bussData;
      });
    },
    checkImage(url) {
      this.pictureUrl = url;
      this.dialogVisible = true;
    }
  }
};
</script>
<style lang="scss">
</style>

